| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

InfiniteMask.h
1 // InfiniteMask.h
3 //
5
6 namespace nkGraphics
7 {
13 template<typename T>
14 class InfiniteMask
15 {
16 public :
17
21 InfiniteMask () = default ;
25 InfiniteMask (const InfiniteMask<T>& other) ;
29 InfiniteMask (InfiniteMask<T>&& other) ;
33 ~InfiniteMask () = default ;
34
40 void resize (unsigned int size) ;
47 void setVal (unsigned int index, T value) ;
51 void clear () ;
56 T getVal (unsigned int index) const ;
60 unsigned int getOrder () const ;
61
70 bool checkSubPartEquality (const InfiniteMask<T>& other, unsigned int begin, unsigned int end) const ;
80 bool checkSubPartFill (const InfiniteMask<T>& other, unsigned int begin, unsigned int end) const ;
81
82 // Merge with another mask
89 void mergeWith (const InfiniteMask<T>& other, bool overrideValues = false) ;
90
97 typename std::vector<T>::reference operator[] (size_t index) ;
104 T operator[] (size_t index) const ;
105
112 bool operator== (const InfiniteMask<T>& other) const ;
119 bool operator!= (const InfiniteMask<T>& other) const ;
126 bool operator< (const InfiniteMask<T>& other) const ;
127
134 InfiniteMask& operator= (const InfiniteMask<T>& other) ;
141 InfiniteMask& operator= (InfiniteMask<T>&& other) ;
142 } ;
143
144 typedef InfiniteMask<char> InfiniteByteMask ;
145 typedef InfiniteMask<short> InfiniteShortMask ;
146 typedef InfiniteMask<int> InfiniteIntMask ;
147 typedef InfiniteMask<unsigned long long> InfiniteInt64Mask ;
148 }
nkGraphics::InfiniteMask::operator[]
std::vector< T >::reference operator[](size_t index)
nkGraphics::InfiniteMask::getVal
T getVal(unsigned int index) const
nkGraphics::InfiniteInt64Mask
InfiniteMask< unsigned long long > InfiniteInt64Mask
Typedefed unsigned long long mask.
Definition: InfiniteMask.h:147
nkGraphics::InfiniteMask::checkSubPartFill
bool checkSubPartFill(const InfiniteMask< T > &other, unsigned int begin, unsigned int end) const
nkGraphics::InfiniteMask
A more generic version of the InfiniteBitMask.
Definition: InfiniteMask.h:15
nkGraphics::InfiniteMask::operator==
bool operator==(const InfiniteMask< T > &other) const
nkGraphics::InfiniteByteMask
InfiniteMask< char > InfiniteByteMask
Typedefed char mask.
Definition: InfiniteMask.h:144
nkGraphics::InfiniteMask::InfiniteMask
InfiniteMask(const InfiniteMask< T > &other)
nkGraphics::InfiniteMask::getOrder
unsigned int getOrder() const
nkGraphics::InfiniteShortMask
InfiniteMask< short > InfiniteShortMask
Typedefed short mask.
Definition: InfiniteMask.h:145
nkGraphics::InfiniteMask::operator!=
bool operator!=(const InfiniteMask< T > &other) const
nkGraphics::InfiniteMask::operator<
bool operator<(const InfiniteMask< T > &other) const
nkGraphics::InfiniteMask::clear
void clear()
nkGraphics::InfiniteMask::operator=
InfiniteMask & operator=(const InfiniteMask< T > &other)
nkGraphics::InfiniteMask::InfiniteMask
InfiniteMask(InfiniteMask< T > &&other)
nkGraphics::InfiniteMask::InfiniteMask
InfiniteMask()=default
nkGraphics::InfiniteMask::mergeWith
void mergeWith(const InfiniteMask< T > &other, bool overrideValues=false)
nkGraphics::InfiniteMask::setVal
void setVal(unsigned int index, T value)
nkGraphics::InfiniteMask::~InfiniteMask
~InfiniteMask()=default
nkGraphics::InfiniteMask::checkSubPartEquality
bool checkSubPartEquality(const InfiniteMask< T > &other, unsigned int begin, unsigned int end) const
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::InfiniteMask::resize
void resize(unsigned int size)
nkGraphics::InfiniteIntMask
InfiniteMask< int > InfiniteIntMask
Typedefed int mask.
Definition: InfiniteMask.h:146